﻿@{
    ViewBag.Title = "打印抽取评委表";
}
<script src='@Url.Content("~/Scripts/Extract/PrintExtract.js")' type="text/javascript"></script>
<script type="text/javascript">
    //定义查询地址
    var strUrlGetPrintExtract = '@Url.Action("GetExtractInfo")';

    $(document).ready(function () {
        getPrintExtract('@Request["extractID"]');
    });

    function preview(oper) {
        if (oper < 10) {
            bdhtml = window.document.body.innerHTML;//获取当前页的html代码
            sprnstr = "<!--startprint" + oper + "-->";//设置打印开始区域
            eprnstr = "<!--endprint" + oper + "-->";//设置打印结束区域
            prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html
            prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));//从结束代码向前取html
            window.document.body.innerHTML = prnhtml;
            window.print();
            window.document.body.innerHTML = bdhtml;
        } else {
            window.print();
        }
    }

</script>

<body>
    <!--startprint1-->
    <!--打印内容开始-->
    <div style="width:981px;margin:auto">
        <style>
            .tbl {
                text-align: center;
                margin: auto;
                width:100%;
                border:solid #000 1px;
                border-collapse: collapse;
            }

            .tbl th {
                height: 50px;
                font-size: 20px;
                border-collapse: collapse;
                border:solid #000 1px;
            }

            .tbl td {
                height: 40px;
                font-size: 16px;
                border-collapse: collapse;
                border:solid #000 1px;
            }

            p {
                font-size: 16px;
            }

            #prtb {
                text-align: center;
                margin-top: 20px;
            }

            #jdrqz {
                float: right;
                margin-right: 200px;
            }

            #pbbgfb {
                float: right;
            }

            .name_width {
                width: 100px;
            }

            .yes_or_no {
                width: 130px;
            }
        </style>

        <h1 style="text-align: center;">抽取评委登记表</h1>
        <p id="ExtractDate_str"></p>
        <p id="ProjectTitle"></p>
        <div style="text-align: center">
            <table class="tbl">
                <tr>
                    <th>序号</th>
                    <th class="name_width">姓名</th>
                    <th>工作单位</th>
                    <th>联系方式</th>
                    <th>职称、职务</th>
                    <th class="yes_or_no">是否参与评标</th>
                    <th>备注</th>
                </tr>
            </table>
        </div>
        <p>抽取评委经办人（签字）:<span id="jdrqz">抽取评委现场监督人（签字）:</span></p>
    </div>
    <!--打印内容结束-->
    <!--endprint1-->
    <div id="prtb">
        <input type="button" name='button_export' title='打印' onclick="preview(1)" value="打印">
    </div>
</body>
